package com.yqy.trans;

import com.yqy.PaymentMethod;
import com.yqy.method.MailMethod;

public class ChangeMailTransaction extends ChangeMethodTransaction {

    private String mainAddress;

    public ChangeMailTransaction(int empId, String mainAddress) {
        super(empId);
        this.mainAddress = mainAddress;
    }

    @Override
    protected PaymentMethod getPaymentMethod() {
        return new MailMethod(mainAddress);
    }

}
